<?php
/**
 * @ClassName: Demotwo
 * @Description: TODO
 * @author: wmsh
 * @Date: 2024-05-29 17:08
 * @Version: V1.0.0
 */

namespace app\test\controller;

class Demotwo
{
    protected $noNeedLogin = ['*'];

    public function index()
    {
        var_dump(substr_cut('王云海'));
        var_dump(substr_cut('我们都是中国人', 2, 3));
        var_dump(substr_cut('15825258992', 3, 4));
        var_dump("订单号：" . create_trade_no());
        var_dump("订单号：" . create_trade_no('GYD'));
        var_dump("订单号：" . create_trade_no('', 248036));
        var_dump("订单号：" . create_trade_no('GYD', 248036));
        var_dump(replace_url('/static/admin/js/Chart.js'));

        $arr = passCrypt();
        var_dump("密码：" . $arr[0]);
        var_dump("加密盐：" . $arr[1]);
    }

}